GtkIconTheme: Support looking up directional variants
authorMatthias Clasen <mclasen@redhat.com>
Wed, 14 May 2014 01:34:49 +0000 (03:34 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 14 May 2014 02:28:36 +0000 (04:28 +0200)
commitb0b205040c9468855604a24f483f34e01ffa440d
tree7000aa7762f9b3a229a3aa1d57112c8c9a257bd5
parent89d6598d5b51513c8ef90d67d9ecb2451954f45b
GtkIconTheme: Support looking up directional variants

Add two new icon lookup flags, GTK_ICON_LOOKUP_DIR_LTR and _RTL,
which tell GtkIconTheme to look for icon variants which have a
-ltr or -rtl suffix. GtkIconHelper adds these lookup flags when
looking up icons.

Note that due to the way this overlaps with symbolic icon lookup,
directional variants of symbolic icons must be called -symbolic-rtl, not
-rtl-symbolic.

https://bugzilla.gnome.org/show_bug.cgi?id=729980
gtk/gtkicontheme.c
gtk/gtkicontheme.h
gtk/gtkstylecontext.c